/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.beans;

import java.io.Serializable;

/**
 *
 * @author pguerreroj
 * CREATE TABLE Mecanic (
    IdMecanic integer NOT NULL,
    Disponible boolean DEFAULT true NOT NULL,
    IdRep1 integer NOT NULL,
    IdRep2 integer NOT NULL
    );
 */
public class Mecanic implements Serializable{
    
    private static final long serialVersionUID = 1L;
    private int idMecanic;
    private boolean disponible;
    private String nombre;
    private int idRep1;
    private int idRep2;

    public Mecanic() {
    }

    public Mecanic(int idMecanic, boolean disponible, int idRep1, int idRep2) {
        this.idMecanic = idMecanic;
        this.disponible = disponible;
        this.idRep1 = idRep1;
        this.idRep2 = idRep2;
    }

    public int getIdMecanic() {
        return idMecanic;
    }

    public boolean isDisponible() {
        return disponible;
    }

    public int getIdRep1() {
        return idRep1;
    }
    public String getNombre() {
        return nombre;
    }

    public int getIdRep2() {
        return idRep2;
    }

    public void setIdMecanic(int idMecanic) {
        this.idMecanic = idMecanic;
    }

    public void setDisponible(boolean disponible) {
        this.disponible = disponible;
    }

    public void setIdRep1(int idRep1) {
        this.idRep1 = idRep1;
    }
   public void setNombre(String n) {
        this.nombre = n;
    }

    public void setIdRep2(int idRep2) {
        this.idRep2 = idRep2;
    }
    
    
    
}
